home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / gpmww1.zip / README.TXT < prev    next >
Text File  |  1992-01-05  |  3KB  |  39 lines

  1.     The file GPMWW1.ZIP contains a Visual Basic program that uses DDE
  2. to create a form-based document in Microsoft Word for Windows (Winword).
  3. The VB program is PROMNOTE.EXE: I am posting it here as an example of how
  4. VB and Winword can be used together via DDE (the source code for the VB
  5. program is being posted in the MSBASIC forum as GPMVB1.ZIP).  The remaining
  6.  file in this package is VBNOTE.DOT, a Winword 1.x template that should be
  7.  copied to your Winword template directory before running the VB program.
  8.     Running the VB program will call up a form that collects data for
  9. a simple promissory note.  When data entry is complete, there is a button
  10. on the form that can be used to call up Winword and create a promissory
  11. note using the VBNOTE template.  VBNOTE.DOT has dde fields that read data
  12. out of the VB program.  The dde fields are embedded in set fields that
  13. assign the result of the dde field to a bookmark, which is then referenced
  14. and formatted where applicable in the document; if you have a color monitor,
  15. the items in the document that trace back to the VB form should show up in red.
  16. A table at the beginning of the Winword document summarizes the data from the VB program used in the document.
  17.     If Winword is not running, the program will attempt to start it up.
  18. Because I don't include much in my path and have been too lazy to work on
  19. configuration routines, the program looks for a winword.ini file in c:\winword
  20. and d:\winword.  If it finds one, it assumes that directory is your winword
  21. directory; otherwise, it asks for your winword directory.
  22.     The "Get Data" button calls up another form that can be used to read
  23. data back out of a promissory note created by the VB program (or any other
  24. Winword file that uses the same bookmark names).  The data can then be edited
  25. and used to create a new note based on the revised data.  You can also use the
  26. revised data to update the existing note, but you have to do it manually, i.e.,
  27.  while the VB form is still onscreen, switch to the Winword document and
  28. manually update all of its fields (press Control plus 5 on the numeric keypad
  29. to select the entire document, then F9 to update the fields; you may have to
  30. unlock the fields (Control + Shift + F11) first).  Ideally, the forms would
  31. be better integrated, i.e., you would have a Winword macro that could call up
  32. the VB program, etc., but I haven't gotten around to that aspect of the project.
  33.     This all works on my machine, but cross your fingers before letting
  34. her rip!
  35.  
  36.             g.p.m.
  37.         CIS No. 72040,110
  38.  
  39. 1/5/92